package com.gen.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "gen_project_component", autoResultMap = true)
public class ProjectComponent extends BaseEntity {
    
    private Long projectId;
    private String name;
    private String identifier;
    
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private Map<String, String> inputSpec;
    
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private Map<String, String> outputSpec;
    
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private Map<String, Object> logicConfig;
    
    private String description;
}